<?php
class userControl extends Control{
	public function index(){
		
	$this->display();
	}
   public function show_user(){
   	$db=M('user');
   	$user=$db->count();
   	$page=new page($user,4);
   	$users=$db->where("uid>1")->findall($page->limit());
   	$this->assign('user',$users);
   	$this->assign('pages',$page->show());
   		$this->display();
   }
 public function del(){
 	$uid=$_GET['uid'];
 	$db=M('user');
 	if($db->del($uid)){
 	$this->success('删除成功');
 	}
 }
}

?>